<!DOCTYPE html>
<?php
$name = @isset($_COOKIE[user]) ? @$_COOKIE[user] : '';
$pwd = @isset($_COOKIE[pwd]) ? @$_COOKIE[pwd] : '';
?>
<html>
	<head>
		<meta charset="UTF-8">
		<title>用户登录</title>
	</head>
	<body>
		<form action="login.php" method="post">
			<input type="text" name="name" value="<?= $name ?>" />
			<br />
			<input type="password" name="pwd" value="<?= $pwd ?>"/>
			<br />
			<input type="checkbox" name="rem" <?php echo empty($name)? '' : 'checked'; ?>/>
			记住我
			<br />
			<input type="submit" value="登陆"/>
		</form>
	</body>
</html>
